package com.aiyige.page.interest.event;

public class EventSelectChannel {
    boolean shouldRefreshChannel;
    boolean shouldJump;
    int jumpPosition;

    public EventSelectChannel() {
    }

    private EventSelectChannel(Builder builder) {
        setShouldRefreshChannel(builder.shouldRefreshChannel);
        setShouldJump(builder.shouldJump);
        setJumpPosition(builder.jumpPosition);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public boolean isShouldRefreshChannel() {
        return shouldRefreshChannel;
    }

    public void setShouldRefreshChannel(boolean shouldRefreshChannel) {
        this.shouldRefreshChannel = shouldRefreshChannel;
    }

    public boolean isShouldJump() {
        return shouldJump;
    }

    public void setShouldJump(boolean shouldJump) {
        this.shouldJump = shouldJump;
    }

    public int getJumpPosition() {
        return jumpPosition;
    }

    public void setJumpPosition(int jumpPosition) {
        this.jumpPosition = jumpPosition;
    }

    public static final class Builder {
        private boolean shouldRefreshChannel;
        private boolean shouldJump;
        private int jumpPosition;

        private Builder() {
        }

        public Builder shouldRefreshChannel(boolean val) {
            shouldRefreshChannel = val;
            return this;
        }

        public Builder shouldJump(boolean val) {
            shouldJump = val;
            return this;
        }

        public Builder jumpPosition(int val) {
            jumpPosition = val;
            return this;
        }

        public EventSelectChannel build() {
            return new EventSelectChannel(this);
        }
    }
}
